import {http} from './http';

export const getQiniuToken = params => http.post('/qiniuToken', params);
export const addProd = params => http.post('/addProd', params);
export const getProd = params => http.get('/getProd', {params});
export const deleteProd = params => http.post('/deleteProd', params);
export const unpublish = params => http.post('/unpublishProd', params);
export const publish = params => http.post('/publishProd', params);
export const getProdTotalCount = () => http.get('/getProdTotalCount');
export const addBanner = (data) => http.put('/addBanner', data);
export const getBanner = () => http.get('/banner');
export const addSecKill = (data) => http.post('/secKill', data);
